package cn.tedu.medicalmanagementsystem.manager.mapper;

import cn.tedu.medicalmanagementsystem.manager.pojo.dto.ManagerLoginParam;
import cn.tedu.medicalmanagementsystem.manager.pojo.dto.ManagerUpdateParam;
import cn.tedu.medicalmanagementsystem.manager.pojo.dto.ReviewQuery;
import cn.tedu.medicalmanagementsystem.manager.pojo.entity.Manager;
import cn.tedu.medicalmanagementsystem.manager.pojo.vo.EscortVO;
import cn.tedu.medicalmanagementsystem.manager.pojo.vo.ReviewVO;
import cn.tedu.medicalmanagementsystem.manager.pojo.vo.ServiceTrackVO;
import cn.tedu.medicalmanagementsystem.manager.pojo.vo.ServiceTypeVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ManagerMapper {
    Manager selectByUsernameAndPassword(ManagerLoginParam managerLoginParam);
    List<ServiceTrackVO> selectAllServiceTracks();
    List<ReviewVO> selectReviews();
    List<EscortVO> selectEscort(@Param("status") String status);
    int updateEscortStatus(@Param("escortId") Long escortId,
                           @Param("status") String status,
                           @Param("auditComment") String auditComment);
    int updatePersonal(ManagerUpdateParam managerUpdateParam);

    List<ServiceTypeVO> selectServiceTypes();

    int delReviews(Long reviewId);

    List<ReviewVO> selectReviewsById(ReviewQuery reviewQuery);
}
